<template>
  <el-row>
    <el-button size="mini" type="primary" @click="saveDbInfo" icon="el-icon-plus">新增</el-button>
    <el-button size="mini" type="primary" @click="format" icon="el-icon-plus">格式化</el-button>
    <el-button size="mini" type="primary" @click="run" icon="el-icon-plus">运行</el-button>
  </el-row>
</template>

<script>

export default {
  name: 'home-header',
  props: {},
  components: {},
  computed: {},
  data () {
    return {}
  },
  methods: {
    saveDbInfo () {
      this.$emit('showConnectionForm', true)
    },
    format () {
      this.$emit('getMainActiveCompent', 'sqlFormat')
    },
    run () {
      this.$emit('getMainActiveCompent', 'run')
    },
  },
  mounted () {
  },
  created () {
  }
}
</script>

<style scoped>

</style>
